﻿using System;

namespace Jinjia.Approve.Model.VM.JJFlow
{
    /// <summary>
    /// 审批单列表
    /// </summary>
    public class JJInstanceViewModel
    {
        /// <summary>
        /// 主键
        /// </summary>
        public int id { get; set; }

        /// <summary>
        /// 审批人单据id
        /// </summary>
        public int instance_emp_id { get; set; }

        /// <summary>
        /// 业务单号
        /// </summary>
        public string biz_order_id { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public string status { get; set; }

        /// <summary>
        /// 状态描述
        /// </summary>
        public string status_name { get; set; }

        public string template_name { get; set; }

        /// <summary>
        /// 耗时
        /// </summary>
        public string time_consuming { get; set; }

        /// <summary>
        /// 审批单名称
        /// </summary>
        public string instance_name
        {
            get { return create_user_name + template_name; }
            set { }
        }

        /// <summary>
        /// 创建人
        /// </summary>
        public int create_user_id { get; set; }

        /// <summary>
        /// 创建人名称
        /// </summary>
        public string create_user_name { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime create_time { get; set; }

        /// <summary>
        /// 更新人
        /// </summary>
        public int update_user_id { get; set; }

        /// <summary>
        /// 更新人名称
        /// </summary>
        public string update_user_name { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime update_time { get; set; }

        /// <summary>
        /// 业务类型key
        /// </summary>
        public string modular_key { get; set; }

        /// <summary>
        /// 业务类型名称
        /// </summary>
        public string modular_name { get; set; }

        /// <summary>
        /// 流程模板id
        /// </summary>
        public string template_id { get; set; }

        /// <summary>
        /// 节点
        /// </summary>
        public int node_id { get; set; }

        /// <summary>
        /// 节点审批人
        /// </summary>
        public int user_id { get; set; }

        /// <summary>
        /// 当前节点
        /// </summary>
        public int current_node_id { get; set; }

        /// <summary>
        /// 当前审批人
        /// </summary>
        public string current_user_name { get; set; }
    }
}